{% extends "djangobmf/base.html" %}

{% block base_content %}
<table class="table table-striped table-condensed table-hover">
  <thead>
    <tr>
      <th>History</th>
      <th>ct</th>
      <th>seen</th>
      <th>created</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    {% for obj in object_list %}
    <tr>
      <td>{{ obj.history.topic }} {{ obj.history.text }} {{ obj.history.action }} {{ obj.history.template }} {{ obj.history.parent_id }}</td>
      <td>{{ obj.ct }} {{ obj.ct_id }} {{ obj.history.parent_ct_id }}</td>
      <td>{{ obj.seen }}</td>
      <td>{{ obj.created }}</td>
      <td><a href="{% get_url_from_ct obj.ct obj.history.parent_id %}">goto</a></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<div class="panel panel-default">
  <div class="panel-heading">Activity</div>
  <ul class="list-group">
    {# for item in object_list %}{% include item.history.template with item=item.history toogle=False %}{% endfor #}
  </ul>
</div>

{% endblock %}
